package com.ruoyi.project.beautyflower.commodity.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品表 bf_commodity
 * 
 * @author lxs
 * @date 2018-09-30
 */
public class Commodity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 序号 */
	private Integer sort;
	/** 商品名称 */
	private String name;
	/** 商品链接 */
	private String url;
	/** 商品说明 */
	private String content;
	/** 原价格 */
	private Double price;
	/** 活动价 */
	private Double activityPrice;
	/** logo */
	private String logo;
	/** 是否上架 */
	private Integer shelves;
	/** 首推 */
	private Integer known;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setSort(Integer sort) 
	{
		this.sort = sort;
	}

	public Integer getSort() 
	{
		return sort;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setPrice(Double price) 
	{
		this.price = price;
	}

	public Double getPrice() 
	{
		return price;
	}
	public void setActivityPrice(Double activityPrice) 
	{
		this.activityPrice = activityPrice;
	}

	public Double getActivityPrice() 
	{
		return activityPrice;
	}
	public void setLogo(String logo) 
	{
		this.logo = logo;
	}

	public String getLogo() 
	{
		return logo;
	}
	public void setShelves(Integer shelves) 
	{
		this.shelves = shelves;
	}

	public Integer getShelves() 
	{
		return shelves;
	}
	public void setKnown(Integer known) 
	{
		this.known = known;
	}

	public Integer getKnown() 
	{
		return known;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sort", getSort())
            .append("name", getName())
            .append("url", getUrl())
            .append("content", getContent())
            .append("price", getPrice())
            .append("activityPrice", getActivityPrice())
            .append("logo", getLogo())
            .append("shelves", getShelves())
            .append("known", getKnown())
            .toString();
    }
}
